package edu.hawaii.webspider;

import junit.framework.TestCase;

import org.junit.Test;

/**
 * Test Case for the Webspider Example.
 * 
 * @author Sonwright M. Gomez
 * 
 */
public class TestWebSpider extends TestCase {

  /**
   * Tests Main Method of Webspider Example.
   * @throws Exception when error occurs during testing
   */
  @Test
  public void testMain() throws Exception {
    String[] args = new String[4];
    args[0] = "-totallinks";
    args[1] = "http://www.hackystat.org/";
    args[2] = "100";
    args[3] = "-logging";
    WebSpiderExample.main(args);
    assertNotNull("Main Method should pass", args);
  }
  
}
